package com.system.elastic.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tb_order
 */
@TableName(value ="tb_order")
@Data
public class TbOrder implements Serializable {
    /**
     * 订单id
     */
    @TableId(value = "id")
    private String id;

    /**
     * 数量合计
     */
    @TableField(value = "total_num")
    private Integer totalNum;

    /**
     * 支付类型，1、在线支付、0 货到付款
     */
    @TableField(value = "pay_type")
    private String payType;

    /**
     * 订单创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 订单更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 付款时间
     */
    @TableField(value = "pay_time")
    private Date payTime;

    /**
     * 发货时间
     */
    @TableField(value = "consign_time")
    private Date consignTime;

    /**
     * 交易完成时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 交易关闭时间
     */
    @TableField(value = "close_time")
    private Date closeTime;

    /**
     * 收货人
     */
    @TableField(value = "receiver_contact")
    private String receiverContact;

    /**
     * 收货人手机
     */
    @TableField(value = "receiver_mobile")
    private String receiverMobile;

    /**
     * 收货人地址
     */
    @TableField(value = "receiver_address")
    private String receiverAddress;

    /**
     * 交易流水号
     */
    @TableField(value = "transaction_id")
    private String transactionId;

    /**
     * 订单状态,0:未完成,1:已完成，2：已退货
     */
    @TableField(value = "order_status")
    private String orderStatus;

    /**
     * 支付状态,0:未支付，1：已支付，2：支付失败
     */
    @TableField(value = "pay_status")
    private String payStatus;

    /**
     * 发货状态,0:未发货，1：已发货，2：已收货
     */
    @TableField(value = "consign_status")
    private String consignStatus;

    /**
     * 是否删除
     */
    @TableField(value = "is_delete")
    private String isDelete;

    /**
     * 
     */
    @TableField(value = "sku_id")
    private String skuId;

    /**
     * 
     */
    @TableField(value = "name")
    private String name;

    /**
     * 
     */
    @TableField(value = "price")
    private Integer price;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}